package 
{
	import com.bit101.components.Style;
	
	import flash.display.Sprite;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Mr.zheng
	 */
	[SWF(width="400",height="600", backgroundColor="#999999",frameRate="20")]
	public class Main extends Sprite 
	{
		
		private var applicationFacade:ApplicationFacade;
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			
			//设置mini组件的样式
			Style.embedFonts=false;
			Style.LABEL_TEXT=0x000000;
			Style.fontSize=12;
			
			stage.scaleMode=StageScaleMode.NO_SCALE;
			applicationFacade = ApplicationFacade.instance;
			applicationFacade.startup(this);
		}
		
	}
	
}